import { request } from "@/utils/http";


// 请求品牌
export const reqTrademarkGet = (page: number, limit: number) => {
    return request(`/admin/product/baseTrademark/${page}/${limit}`);
};
// 添加品牌的请求
export const reqAddTrademark = (data: any) => {
    return request({
        url: '/admin/product/baseTrademark/save',
        method: 'POST',
        data
    });
};
// 修改品牌的请求
export const reqEditTrademark = (data: any) => {
    return request({
        url: '/admin/product/baseTrademark/update',
        method: 'PUT',
        data
    })
};
// 删除某个品牌
export const reqDeleteIt = (id: number) => {
    return request({
        url: `/admin/product/baseTrademark/remove/${id}`,
        method: 'DELETE'
    })
}